package com.yk.anima.dao;

import com.github.pagehelper.Page;
import com.yk.anima.pojo.ProductsDog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductsDogMapper {
    int deleteByPrimaryKey(Integer pId);

    int insert(ProductsDog record);

    int insertSelective(ProductsDog record);

    ProductsDog selectByPrimaryKey(Integer pId);

    int updateByPrimaryKeySelective(ProductsDog record);

    int updateByPrimaryKey(ProductsDog record);

    List<ProductsDog> findAll();

    int updateByPrimarySelective(ProductsDog dog);

    Page<ProductsDog> findByPage(@Param("name") String name);
}